#pragma once
#include "BurgerTimeMachine.h"

class CBurninRubberMachine:public CBurgerTimeMachine
{
protected:
	u8 Scroll2;							//scroll register #2
	u8 BGRAM[0x200];					//background ram
public:
	CBurninRubberMachine();
	~CBurninRubberMachine();
	int Init();
	void Reset();
	void Frame();
	void SaveState(CState *s);
	void LoadState(CState *s);
	void RenderScreen(u8 *dest,int pitch);
	void RenderBackground(u8 *dest,int pitch);
	static u8 ReadMainCPU(void *user,u32 addr);
	static void WriteMainCPU(void *user,u32 addr,u8 data);
};
